<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
//    public function __construct($application)
//    {
//	date_default_timezone_set('Europe/Berlin');
//    }
    public function _initLocale()
    {
        $locale = new Zend_Locale();
	$locale->setLocale('de');
//        var_dump($locale);
        Zend_Registry::set('Zend_Locale', $locale);
        
        $translate = new Zend_Translate_Adapter_Array( array(
            'adapter' => 'array',
            'content' => APPLICATION_PATH.'/languages/de/de.php',
            'locale' => 'de',
        ));
        $translate->addTranslation(array(
            'adapter' => 'array',
            'content' => APPLICATION_PATH.'/languages/de/Zend_Validate.php',
            'locale' => 'de'
        ));
        
        $translate->setLocale($locale);
        Zend_Registry::set('Zend_Translate', $translate);
        
    }
}

